package com.spring.dao;

import com.spring.dao.provider.UserDynaSqlProvider;
import com.spring.pojo.SysUser;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author tang
 */
@Repository
public interface UserDao {
    /** 判断用户名密码是否正确
     * @param params 用户名 密码
     * @return 用户对象
     */
    @SelectProvider(type= UserDynaSqlProvider.class,method="login")
    public SysUser selectByNameAndPwd(Map<String, Object> params);
}
